package com;

import com.dao.ChatterDAO;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
public class LogoutExecutor {
    @Resource
    private ChatterDAO chatterDAO;

    @Transactional
    public void logout(String name) {
        chatterDAO.removeUser(name);
    }

}
